// bubblewort.go
package bubblesort

func BubbleSort(values )[]int {
	flags := true

	for i := 0, i < len(values) - 1; ++i {
		flags = true

		for j := 0; j < len(values) - i - 1; ++j {
			if values[j] > values[j + 1] {
				values[j], values[j + 1] = values[j + 1], values[j]
				flags = false
			}
		}

		if flags == true {
			break
		}
	}
}
